/**
 * 
 */
package blog.com.mw.pojo.po;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Administrator
 *
 */
@Setter
@Getter
public class ArticlePO {
	/**
	 * 文章ID
	 */
	private Long id;
	
	/**
	 * 文章标题
	 */
	private String title;
	
	/**
	 * 文章内容
	 */
	private String content;
	
	/**
	 * Markdown源码
	 */
	private String code;
	
	/**
	 * 图片
	 */
	private String pirture;
	
	/**
	 * 点赞数
	 */
	private Integer likeCount;
	
	/**
	 * 评论数
	 */
	private Integer commentCount;
	
	/**
	 * 用户ID
	 */
	private Long userId;
	
	/**
	 * 作者
	 */
	private String author;
	
	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date ctime;

	@Override
	public String toString() {
		return "ArticlePO [id=" + id + ", title=" + title + ", content=" + content + ", code=" + code + ", pirture="
				+ pirture + ", likeCount=" + likeCount + ", commentCount=" + commentCount + ", userId=" + userId
				+ ", author=" + author + ", ctime=" + ctime+ "]";
	}
	
	
}
